﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace WpfApplication2
{
   [CustomValidation(typeof(IntervalValidator), "Validate")]
    public class Interval
    {
        
        public Interval()
        { 

        }
        [Range(0, 100)]
        public int Low { get; set; }
        [Range(0, 100)]
        public int High { get; set; }
         
        public Interval InnerInterval { get; set; }
    }
}
        
       

       